Update gis

Brightcells 6 jaren geleden
bovenliggende
commit
cf26cd7dcc
1 gewijzigde bestanden met toevoegingen van 0 en 2 verwijderingen
  1. 0 2
      commands/management/commands/gis.py

+ 0 - 2
commands/management/commands/gis.py

@@ -42,8 +42,6 @@ class Command(CompatibilityBaseCommand):
42 42
                         gisinfo = requests.get(settings.GIS_2_ADMINISTRATIVE_DIVISION.format(v.get('lat', 0), v.get('lon', 0))).json()
43 43
                     except Exception as e:
44 44
                         logger.info(e.message)
45
-                    if gisinfo.get('error') != 0:
46
-                        continue
47 45
 
48 46
                     zh1 = gisinfo.get('data', {}).get('zh1', '')
49 47